#include <iostream>

using namespace std;

long long rowSumOddNumbers(unsigned n){
  if (n == 1) return 1;
  return (rowSumOddNumbers(n-1)/(n-1) + 2*n - 1) * n;
}

int main() {
  cout << rowSumOddNumbers(2) << endl;
  cout << rowSumOddNumbers(3) << endl;
  cout << rowSumOddNumbers(4) << endl;
  cout << rowSumOddNumbers(5) << endl;
}